import 'package:flutter/material.dart';

class InfoChip extends StatelessWidget {
  const InfoChip(
      {required this.text,
      required this.textColor,
      required this.backgroundColor,
      super.key});

  final String text;
  final Color textColor;
  final Color backgroundColor;

  @override
  Widget build(BuildContext context) {
    return Container(
      decoration: BoxDecoration(
        color: backgroundColor,
        border: Border.all(
          color: backgroundColor,
        ),
        borderRadius: const BorderRadius.all(Radius.circular(6.0)),
      ),
      // color: backgroundColor,
      padding: const EdgeInsets.all(3.0),
      child: Text(
        text,
        style:
            Theme.of(context).textTheme.bodySmall!.copyWith(color: textColor),
      ),
    );
  }
}
